package day06;

import java.util.Arrays;
import java.util.Scanner;

public class nums2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        says();
        String a = scanner.nextLine();
        sayHis(a);
        int b = scanner.nextInt();
        sayHellos(a,b);
        getNums();
        pluss(5,64);
        int[] c = testArrays(30,1000);
        int[] e = testArrays(10,1000);
        System.out.println(Arrays.toString(c));
        System.out.println(Arrays.toString(e));
    }
    public static void says(){
        System.out.println("-----------------");
    }
    public static void sayHis(String names){
        System.out.println("hi,我叫"+names);
    }
    public static void sayHellos(String names,int ages){
        System.out.println("Hello,我叫"+names+"，今年"+ages);

    }
    public static int getNums(){
        return 520;
    }
    public static double pluss(double a,double b){
        double x = a+b;
        return x;
    }
    public static int[] testArrays(int lens,int max){
        int[] a = new int[lens];
        for (int i = 0; i < a.length;i++){
            a[i] = (int)(Math.random()*max);
        }
        return a;
    }
}
